package com.mingqijia.gassafety.db.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.models.auth.In;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 报警数据
 * </p>
 *
 * @author zhangfei
 * @since 2023-02-09
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("t_warning_alarm")
@ApiModel(value="WarningAlarm对象", description="报警数据")
public class WarningAlarm extends BaseEntity {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "主键")
      @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "设备号")
    @TableField("iMEI")
    private String iMEI;

    @ApiModelProperty(value = "报警开始时间：格式-2022-01-21 11:26:56")
    @TableField("warning_start_time")
    private String warningStartTime;

    @ApiModelProperty(value = "浓度值")
    @TableField("concentration")
    private Integer concentration;

    @ApiModelProperty(value = "外呼处理状态：0未处理 1已处理 2已手动外呼")
    @TableField("dispose_status")
    private Integer disposeStatus;

    @ApiModelProperty(value = "处理时间")
    @TableField("dispose_time")
    private String disposeTime;

    @ApiModelProperty(value = "报警持续时长:例子-00:00:30")
    @TableField("warning_duration")
    private String warningDuration;

    @ApiModelProperty(value = "原因")
    @TableField("reason")
    private String reason;

    @ApiModelProperty(value = "数据类型")
    @TableField("type")
    private Integer type;
    @ApiModelProperty(value = "客户级别")
    @TableField("push_levels")
    private String pushLevels;

    @ApiModelProperty(value = "员工")
    @TableField("push_staffs")
    private String pushStaffs;

    @ApiModelProperty(value = "额外手机号")
    @TableField("push_phones")
    private String pushPhones;

    @ApiModelProperty(value = "报警记录id")
    @TableField("alarm_history_id")
    private Long alarmHistoryId;

    @ApiModelProperty(value = "操作人")
    @TableField("operator_by")
    private String operatorBy;

    @ApiModelProperty(value = "设备类型")
    @TableField(exist = false)
    private String equipmentType;

    @TableField(exist = false)
    @ApiModelProperty(value = "安装位置")
    private String installationPosition;


    @TableField(exist = false)
    @ApiModelProperty(value = "设备厂商")
    private String equipmentManufacturer;
    @TableField(exist = false)
    @ApiModelProperty(value = "设备型号")
    private String equipmentModel;
    @TableField(exist = false)
    @ApiModelProperty(value = "户名")
    private String custName;
    @TableField(exist = false)
    @ApiModelProperty(value = "户址")
    private String custAddress;
    @TableField(exist = false)
    @ApiModelProperty(value = "户主手机号")
    private String custPhone;
    @TableField(exist = false)
    @ApiModelProperty(value = "行业类型")
    private String industryType;

    @TableField(exist = false)
    @ApiModelProperty(value = "户号")
    private String subsCode;
    @TableField(exist = false)
    @ApiModelProperty(value = "用户id")
    private String memberId;
    @TableField(exist = false)
    @ApiModelProperty(value = "联系人姓名")
    private String Name;
    @TableField(exist = false)
    @ApiModelProperty(value = "联系人手机号")
    private String Phone;
    @TableField(exist = false)
    @ApiModelProperty(value = "地址")
    private String Address;
    @ApiModelProperty(value = "用户Id")
    @TableField(exist = false) 
    private Integer consumerId;

    @ApiModelProperty(value = "设备id")
    @TableField(exist = false)
    private String equipmentId;



    @ApiModelProperty(value = "设备来源：0：默认 1：紫荆wifi设备")
    @TableField(exist = false)
    private String equipmentFrom;

    @ApiModelProperty(value = "紫荆设备编号")
    @TableField(exist = false)
    private String deviceNo;

    @ApiModelProperty(value = "联机码")
    @TableField(exist = false)
    private String onlineCode;

    @ApiModelProperty(value = "安装经度")
    @TableField(exist = false)
    private String positionLon;


    @ApiModelProperty(value = "安装纬度")
    @TableField(exist = false)
    private String positionLat;
    @ApiModelProperty(value = "接收器编号")
    @TableField(exist = false)
    private String receiverCode;

    @ApiModelProperty(value = "接收器类型 市电款 电池款")
    @TableField(exist = false)
    private String receiverType;

    @ApiModelProperty(value = "供电方式")
    @TableField(exist = false)
    private String receiverPowerMode;

    @ApiModelProperty(value = "检测类型")
    @TableField(exist = false)
    private String detectionType;

    @ApiModelProperty(value = "通讯方式")
    @TableField(exist = false)
    private String communicationMode;

    @ApiModelProperty(value = "设备名称")
    @TableField(exist = false)
    private String equipmentName;

    @ApiModelProperty(value = "客户名称")
    @TableField(exist = false)
    private String name;
    @ApiModelProperty(value = "用户类型")
    @TableField(exist = false)
    private String custType;

    @ApiModelProperty(value = "电磁阀id")
    @TableField(exist = false)
    private Integer valveInfoId;

    @ApiModelProperty(value = "组织编码")
    @TableField(exist = false)
    private String orgCode;

    @ApiModelProperty(value = "客户地址")
    @TableField(exist = false)
    private String customerAddress;

}
